const http = uni.$u.http;

export async function downloadFile(filename) {
	if (!filename.includes('?timestamp')) {
		filename = `${filename}?timestamp=${Date.now()}`
	}
	return http.download(filename, {
		timeout: 20000
	})
}
